package com.finace.money.data;

import com.finace.money.common.Constant;
import com.finace.money.common.util.ParamUtil;
import com.finace.money.data.bean.AddressBean;
import com.finace.money.data.bean.BaseBean;
import com.finace.money.data.bean.EmptyBean;
import com.finace.money.data.http.ApiService;
import com.finace.money.presenter.contract.InformationContract;

import java.io.File;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

import io.reactivex.Observable;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;

/**
 * Created by zhangpeng on 2018/1/27.
 */

public class InformationModel implements InformationContract.IInformationModel {


    private ApiService mApiService;

    public InformationModel(ApiService apiService) {
        this.mApiService = apiService;
    }

    @Override
    public Observable<BaseBean<List<AddressBean>>> getAddress() {
        return mApiService.getAddress(Constant.addressInterface, ParamUtil.getParma(new TreeMap<String, String>()));
    }

}
